<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    button {
      background-color: blueviolet;
      width: 100px;
      height: 100px;
      color: black;
      display: block;
    }
  </style>
</head>
<body>
  <button> 我是一个按钮</button>
  <h1>你个鸟人</h1>
  <h2>孙悟空</h2>
  <h3>猪八戒</h3>
  <h4>唐僧</h4>
  <p>唐僧骑马蹬蹬蹬，后面跟个 <strong>孙悟空</strong></p>
  <script>
    document.querySelector('button').addEventListener('click', function() {
      console.log('我被点击了')
    })
  </script>
</body>
</html>